/*
* Copyright 2006 Javector Software LLC
*
* Licensed under the GNU General Public License, Version 2 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.gnu.org/copyleft/gpl.html
*
* THE SOURCE CODE AND ACCOMPANYING FILES ARE PROVIDED WITHOUT ANY WARRANTY,
* WRITTEN OR IMPLIED.
*
* The copyright holder provides this software under other licenses for those
* wishing to include it with products or systems not licensed under the GPL.
* Contact licenses@javector.com for more information.
*/
package samples;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

//! <example xn="AddressXML">
//! <c>chap05</c><s>xmladapter</s>
@XmlType(name="AddressType",
    propOrder = {
    "addrLine1",
    "addrLine2",
    "city",
    "state",
    "zip",
    "phone"
})
@XmlAccessorType(XmlAccessType.FIELD)
public class AddressXML {
  
  protected String addrLine1;
  protected String addrLine2;
  protected String city;
  protected State state;
  @XmlJavaTypeAdapter(IntToStringAdapter.class)
  protected Integer zip;
  protected Phone phone;
  
}
//! </example>
